import Axios from '../uitils/axios'

//用户信息
export const getUsers = () => Axios.get('/api/users/profile')

//产品管理
export const getproducts = () => Axios.get('/api/products/list/count')
//Banner管理
export const getbanner = () => Axios.get('/api/banner/list/count')

type USER = {
    name: string,
    url: string,
    intro: string,
    status: boolean,
    createdAt: string
    pic:string,
}
//banner添加
export const addbanner = (user:USER) => Axios.post('/api/banner',user)
//修改
export const editbanner = (id:number,user:any) => Axios.put(`/api/banner/${id}`,user)

//根据id查找

export const getbanne = (user:number) => Axios.get(`/api/banner/${user}`)
//关于我们
export const getabout = () => Axios.get('/api/about/list/count')



//用户
export const getok = () => Axios.get('/api/users/list/count')

